package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("events_section")
public class EventsSection implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer typeId;
	private Integer typeChildId;

	private Integer eventLevel;
	@ExcelColumn(value = "隐患描述", col = 4)
	private String content;
	@ExcelColumn(value = "奖励标准", col = 5)
	private Double rewardMoney;
	@ExcelColumn(value = "处罚标准", col = 6)
	private Double punishMoney;
	@ExcelColumn(value = "连带标准金额", col = 7)
	private Double lianDaiMoney;
	@ExcelColumn(value = "直接上级比例", col = 8)
	private Integer directRate;
	@ExcelColumn(value = "间接上级比例", col = 9)
	private Integer indirectRate;
	private Integer state;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	@ExcelColumn(value = "类别", col = 1)
	@TableField(exist = false)
	private String typeName;
	@ExcelColumn(value = "类型/区域", col = 2)
	@TableField(exist = false)
	private String typeChildName;
	@ExcelColumn(value = "隐患等级", col = 3)
	@TableField(exist = false)
	private String eventLevelStr;
}
